<?php
$form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
        ));
?>
<div class="block">
    <?php echo $form->label($model, 'member_serial_id'); ?>
    <?php echo $form->textField($model, 'member_serial_id', array('size' => 20, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_name'); ?>
    <?php echo $form->textField($model, 'member_name', array('size' => 50, 'maxlength' => 10)); ?>

    <?php echo $form->label($model, 'member_nickname'); ?>
    <?php echo $form->textField($model, 'member_nickname', array('size' => 50, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_email'); ?>
    <?php echo $form->textField($model, 'member_email', array('size' => 50, 'maxlength' => 100)); ?>

    <div class="input_group">
        <?php echo $form->label($model, 'member_sex'); ?>
        <?php echo $form->radioButtonList($model, 'member_sex', array('male' => 'Male', 'female' => 'Female'), array('size' => 6, 'maxlength' => 6, 'labelOptions' => array('style' => 'display:inline; font-weight:normal;'))); ?>
    </div>
    
    <div class="input_group">
        <?php echo $form->labelEx($model, 'member_state_id'); ?>
        <?php echo $form->dropDownList($model, 'member_state_id', CHtml::listData(ref_area::model()->find(array('select' => 'area_name', 'condition' => 'area_par_id = 0')), 'area_id', 'area_name'), array('prompt' => 'Select State')); ?>
    </div>

    <?php echo $form->label($model, 'member_identity_no'); ?>
    <?php echo $form->textField($model, 'member_identity_no', array('size' => 50, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_phone'); ?>
    <?php echo $form->textField($model, 'member_phone', array('size' => 30, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_mobilephone'); ?>
    <?php echo $form->textField($model, 'member_mobilephone', array('size' => 30, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_join_datetime'); ?>
    <?php echo $form->textField($model, 'member_join_datetime', array('size' => 20, 'maxlength' => 100)); ?>
    
    <div class="input_group">
        <?php echo $form->labelEx($model, 'member_bank_id'); ?>
        <?php echo $form->dropDownList($model, 'member_bank_id', CHtml::listData(ref_bank::model()->findAll(), 'bank_id', 'bank_name'), array('prompt' => 'Select Bank')); ?>
    </div>

    <?php echo $form->label($model, 'member_bank_id'); ?>
    <?php echo $form->textField($model, 'member_bank_id', array('size' => 20, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_bank_account_no'); ?>
    <?php echo $form->textField($model, 'member_bank_account_no', array('size' => 50, 'maxlength' => 100)); ?>

    <?php echo $form->label($model, 'member_tax_account_no'); ?>
    <?php echo $form->textField($model, 'member_tax_account_no', array('size' => 50, 'maxlength' => 100)); ?>

    <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span>Search</span></button>
</div>
<?php $this->endWidget(); ?>

<!-- search-form -->